<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
// var students=`
var groups=`AK117 AK47 Ak47-B type95 type97
M4    M4-s type95 type97 A1
type95 type97  type95 type97 A2
Famas  type95 type97 A3 A4
SWAT type95 type97 A5 A6
PAL type95 type97  A7 A8
KGB type95 type97  A9 A10
AK74 AKM Ak47-B type95 type97`;

// var group=`AK117 AK47 Ak47-B type95 type97`;
	// groups=groups.split('\n').map(function(currentValue,index,arr){
	// 	return currentValue.split('\t');
	// });// thisvalue);
	//进阶为下面的样子
		groups=groups.split('\n').map(x=>x.split('\t'));
		
		
		
		 groups=groups.map(y=>y.map(p=>({name:p,score:0})))
		 console.log(groups);
		
			// var student="张三.狼";
			// student={
			// 	name:student,
			// 	score:0
			// }
			
			// groups=groups.map(function(currentValue){
			// groups=groups.map(function(y){
			// 	return y.map(function(p){
			// 		return {name:p,score:0}
			// 	});
				
			// })
	
// console.log(groups);
// for(let i in groups){
// 	// console.log(group)
// 	groups[i]=groups[i].split('\t')
	
// }
// console.log(groups);

// console.log(groups)
// console.log(students)
// document.write(group)

</script>
</body>
</html>
